﻿package Component
{

	import flash.display.MovieClip;


	public class AvatarLoader extends MovieClip
	{


		public function AvatarLoader(name:String)
		{
			trace("AvatarLoader.name = " + name);
			// Hide Connected
			LabelName.text = name;
			LabelConnected.visible = false;
			LabelDisconnected.visible = true;
			LabelReady.visible = false;
		}

		public function connected()
		{
			LabelConnected.visible = true;
			LabelDisconnected.visible = false;
			LabelReady.visible = false;
		}

		public function ready()
		{
			LabelConnected.visible = false;
			LabelDisconnected.visible = false;
			LabelReady.visible = true;
		}
	}

}